package com.lin.fengxiu.vo;
import com.lin.fengxiu.model.Activity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * @ClassName Activity
 * @Description TODO  活动类实体
 * @Author wushaopei
 * @Date 2021/3/23 22:39
 * @Version 1.0
 */
@Setter
@Getter
@NoArgsConstructor
public class ActivityPureVO {
    @Id
    private Long id;
    private String title;
    private String description;
    private Date startTime;
    private Date endTime;
    private String remark;
    private Boolean online;
    private String entranceImg;
    private String internalTopImg;
    private String name;

    public ActivityPureVO(Activity activity){
        BeanUtils.copyProperties(activity, this);
    }
}
